//
//  StatusTableCellBottomView.swift
//  SinaWeibo
//
//  Created by 胡阳 on 16/6/1.
//  Copyright © 2016年 young4ever. All rights reserved.
//

import UIKit

class StatusTableCellBottomView: UIView {

    override init(frame: CGRect) {
        super.init(frame: frame)
        
        setupSubviews()
    }
    
    private func setupSubviews()
    {
        backgroundColor = UIColor(white: 0.2, alpha: 0.5)
        //1.添加子控件
        addSubview(retweetButton)
        addSubview(likeButton)
        addSubview(commentButton)
        
        //2.布局子控件
        xmg_HorizontalTile([retweetButton, likeButton, commentButton], insets: UIEdgeInsetsZero)
    }
    
    private lazy var retweetButton: UIButton = UIButton.fastCreateButton("timeline_icon_retweet", title: "转发")
    
    private lazy var likeButton: UIButton = UIButton.fastCreateButton("timeline_icon_unlike", title: "赞")
    
    private lazy var commentButton: UIButton = UIButton.fastCreateButton("timeline_icon_comment", title: "评论")

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
